const request = require('./request')

// 登录
export function Login(data = {}) {
  return request.post('/login', data)
}

//首页banner
export function Banner(data = {}) {
  return request.get('/banner', data)
}
// 任务列表
export function HomeList(data = {}) {
  return request.get('/square/list', data)
}
//任务详情
export function HomeListDetail(data = {}) {
  return request.get('/square/show', data)
}
// 创建任务
export function AddTask(data = {}) {
  return request.post('/square/store', data)
}
// 编辑任务
export function taskUpdate(data = {}) {
  return request.post('/square/update', data)
}
// 下架任务
export function taskDown(data = {}) {
  return request.post('/square/down', data)
}
// 下架商家
export function shopDown(data = {}) {
  return request.post('/shop/down', data)
}

//获取token
export function VToken(data = {}) {
  return request.post('/token', data)
}
//获取分类
export function GetCate(data = {}) {
  return request.get('/cate/list', data)
}
//获取商户名片信息
export function GetCard(data = {}) {
  return request.get('/merchant/show', data)
}
//获取其他人名片信息
export function GetOtherCard(data = {}) {
  return request.get('/merchant/other/show', data)
}
//创建商户名片
export function CreatCard(data = {}) {
  return request.post('/merchant/store', data)
}
//创建达人名片
export function CreatMasterCard(data = {}) {
  return request.post('/master/store', data)
}
//编辑达人名片
export function UpdateMasterCard(data = {}) {
  return request.post('/master/update', data)
}
//编辑商户名片
export function UpdateCard(data = {}) {
  return request.post('/merchant/update', data)
}
//确定名片类型
export function MemberType(data = {}) {
  return request.post('/member/type', data)
}
//达人名片切换
export function CardChange(data = {}) {
  return request.post('/master/change', data)
}

//商家广场列表
export function ShopList(data = {}) {
  return request.get('/shop/list', data)
}
//我的店铺列表
export function MyShopList(data = {}) {
  return request.get('/shop/commerce', data)
}
//我的某个店铺详情
export function MyShopShow(data = {}) {
  return request.get('/shop/commerce/show', data)
}
// 认证我的店铺
export function AuthMyShop(data = {}) {
  return request.post('/shop/approve', data)
}
// 我的任务
export function MyTask(data = {}) {
  return request.get('/self/release', data)
}
// 我的报名
export function MyApply(data = {}) {
  return request.get('/self/apply', data)
}
//商家详情
export function ShopShow(data = {}) {
  return request.get('/shop/show', data)
}
// 创建商家广场
export function ShopStore(data = {}) {
  return request.post('/shop/store', data)
}
// 编辑商家广场
export function ShopUpdate(data = {}) {
  return request.post('/shop/update', data)
}
// 分享商家接口
export function ShopForwarding(data = {}) {
  return request.get('/shop/forwarding', data)
}
// 获取手机号
export function GetMemberPhone(data = {}) {
  return request.post('/get/member/phone', data)
}
// 获取用户信息
export function Member(data = {}) {
  return request.post('/member', data)
}
// 报名
export function SquareApply(data = {}) {
  return request.post('/square/apply', data)
}
export function ShopApply(data = {}) {
  return request.post('/shop/apply', data)
}
export function CardImage(data = {}) {
  return request.post('/member/image', data)
}